ENV["JULIA_PKG_SERVER"]="https://mirrors.ustc.edu.cn/julia"

using Pkg

println("\nLoading package list...")
pkglist = readlines("pkglist.txt")

println("\nInstalling packages...")
for pkg in pkglist
    println("\n- "*pkg)
    Pkg.add(pkg)
end

println("\n")
Pkg.precompile()

println("\nFinish.")
